package com.fly.data.jdbc.domain;

import java.util.Date;

import org.springframework.stereotype.Component;

@Component
public class UserListener
{
    // @BeforeSave
    public void beforeSave(User user)
    {
        if (user.getTime() == null)
        {
            user.setTime(new Date());
        }
    }
}
